package demo.learnspringboot.entity;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;



@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "图书的实例")
public class books {

    @Schema(name = "图书的id")
    private Integer id;

    @Schema(name = "图书的title")
    private String title;

    @Schema(name = "图书的author")
    private String author;

    @Schema(name = "图书的year")
    private int year;

    @Schema(name = "图书的isbn")
    private int isbn;


}
